﻿<Window x:Class="AppMVVM.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:views="clr-namespace:AppMVVM.Views"
        Title="MainWindow" Height="300" Width="300"
        >
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <DockPanel Grid.Row="0">
            <Menu>
                <MenuItem Header="_File">
                    <MenuItem Command="{Binding DisconnectCommand}"
                              Header="_Disconnect" InputGestureText="Ctrl-D" />
                    <MenuItem Command="{Binding ExitCommand}"
                              Header="E_xit" InputGestureText="Ctrl-X" />
                </MenuItem>
            </Menu>
        </DockPanel>

        <Border Grid.Row="1" Visibility="Visible" x:Name="ConnectBorder">
            <views:ConnectionView x:Name="Connect"/>
        </Border>
    </Grid>
</Window>
